import Format from './format'

export default function (start, end, format = 'YYYY-MM-DD') {
    let rs = []
    let startTime = new Date(start).getTime();
    let endTime = new Date(end).getTime();

    while (startTime <= endTime) {
        rs.push(Format(startTime, format))
        startTime += 24 * 60 * 60 * 1000
    }
    return rs
}
